from django.urls import path

from accounts import views

app_name = "accounts"

urlpatterns = [
    path("login/", views.MathAssistLoginView.as_view(), name="login"),
    path("logout/", views.logout_view, name="logout"),
    path("register/", views.RegisterView.as_view(), name="register"),
    path("profile/", views.ProfileView.as_view(), name="profile"),
    path("mailbox/", views.MailboxView.as_view(), name="mailbox"),
    path("announcements/<int:pk>/edit/", views.TeacherAnnouncementUpdateView.as_view(), name="announcement_edit"),
    path("announcements/<int:pk>/delete/", views.TeacherAnnouncementDeleteView.as_view(), name="announcement_delete"),
    path("assignments/<int:pk>/edit/", views.TeacherAssignmentUpdateView.as_view(), name="assignment_edit"),
    path("assignments/<int:pk>/delete/", views.TeacherAssignmentDeleteView.as_view(), name="assignment_delete"),
    path("assignments/<int:pk>/submit/", views.AssignmentSubmitView.as_view(), name="assignment_submit"),
]
